package xyz.fuqufyb.aec.dao;

import org.apache.ibatis.annotations.Param;
import xyz.fuqufyb.aec.entity.RoleMenuKey;

import java.util.List;

public interface RoleMenuMapper {
    int deleteByPrimaryKey(RoleMenuKey key);

    int insert(RoleMenuKey record);

    int insertSelective(RoleMenuKey record);

    int deleteByRoleId(@Param("roleId") Integer roleId);

    List<RoleMenuKey> getRoleById(@Param("roleId") Integer roleId);

    int updateRoleMenu(@Param("roleId") Integer roleId, @Param("menuIds") List<Integer> menuIds);
}